package cn.mazexal.exambg.controller;


import cn.mazexal.exambg.common.UserTokenManager;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author: Mazexal
 * Date: 2023/6/1
 */
public class BaseController {

    @Resource
    private HttpServletRequest request;

    public Long getUserId() {
        return UserTokenManager.getUserId(request);
    }
}
